package com.gitee.ayezs.AnnotationQueryWarpperDemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.ayezs.annotation.wrapper.Eq;
import com.gitee.ayezs.annotation.wrapper.Ge;
import com.gitee.ayezs.annotation.wrapper.Like;
import lombok.Data;

import java.io.Serializable;

/**
 *
 * @author pangdonghao
 * @since 2022-01-02
 */
@Data
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @Like
    private String name;
    @Ge
    private Integer age;
    @Eq
    private Integer sex;

}
